import request from '@/utils/request'

// 查询数据字典树形目录
export function queryDictionaryTree(data) {
  return request({
    url: '/tBaseDataDictionaryTree/queryDictionaryTree',
    method: 'post',
    data
  })
}
// 新增数据字典节点
export function insertDictionaryTree(data) {
  return request({
    url: '/tBaseDataDictionaryTree/insertDictionaryTree',
    method: 'post',
    data
  })
}
// 更改数据字典节点
export function updateDictionaryTree(data) {
  return request({
    url: '/tBaseDataDictionaryTree/updateDictionaryTree',
    method: 'post',
    data
  })
}
// 新增数据字典明细
export function insertDataDictionary(data) {
  return request({
    url: '/tBaseDataDictionary/insertDataDictionary',
    method: 'post',
    data
  })
}
// 修改数据字典明细
export function updateDataDictionary(data) {
  return request({
    url: '/tBaseDataDictionary/updateDataDictionary',
    method: 'post',
    data
  })
}
// 删除数据字典明细
export function delDataDictionary(data) {
  return request({
    url: '/tBaseDataDictionary/delDataDictionary',
    method: 'post',
    data
  })
}

// 数据字典明细列表
export function queryDataDictionaryList(data) {
  return request({
    url: '/tBaseDataDictionary/queryDataDictionaryList',
    method: 'post',
    data
  })
}
